-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: transfer_from and decrease_allowance #134
feat: transfer_from and decrease_allowance #134
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well done, a few nitpicks.
As for the empty lines, I'll make sure we get consensus about this next week and add it to the coding guidelines.
Co-authored-by: Daan van der Plas <93204684+Daanvdplas@users.noreply.github.com>
Co-authored-by: Daan van der Plas <93204684+Daanvdplas@users.noreply.github.com>
Co-authored-by: Daan van der Plas <93204684+Daanvdplas@users.noreply.github.com>
…-transfer_from_decrease_allowance' into pr/134
Co-authored-by: Daan van der Plas <93204684+Daanvdplas@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ready for final review
Co-authored-by: Daan van der Plas <93204684+Daanvdplas@users.noreply.github.com>
Co-authored-by: Daan van der Plas <93204684+Daanvdplas@users.noreply.github.com>
Co-authored-by: Daan van der Plas <93204684+Daanvdplas@users.noreply.github.com>
Co-authored-by: Daan van der Plas <93204684+Daanvdplas@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My apologies, I mistakenly read the old code where we were checking if value == 0
twice. This should be checked once and returned, as well as the current_allowance - value
. Could you please revert that removal?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well done Tin!
Co-authored-by: Daan van der Plas <93204684+Daanvdplas@users.noreply.github.com>
ISSUE: #104
Original wasm size: 30.7K, Optimized: 7.2K
API implementation
transfer_from
pallet-api
implementationdecrease_allowance
pallet-api
implementationapprove()
)